// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   quranMenu.java

package app;


import ui.*;

// Referenced classes of package app:
//            MenuElement

public class quranMenu extends Page
{

    public quranMenu(BrowseCanvas canvas, PageListener listener)
    {
        super(canvas, canvas.getPageWidth(), 211);
        setListener(listener);
        super.animated = false;
        super.right_menu = "Keluar";
        
        /*
        Vector v = new Vector();
        v.addElement("Pendahuluan");
        v.addElement("Indeks Surah");
        v.addElement("Bantuan");
        v.addElement("Tentang");
        v.addElement("Keluar");
        super.left_menu = new MenuBar("Menu", listener, v, this);
         */
        int y = 0;
        MenuElement e = null;
        for(int i = 0; i < 5; i++)
        {
            e = new MenuElement(menus[i], i, y);
            addElement(e);
            y += ((Element) (e)).height;
            System.out.println("y : " + y);
        }

        super.SCROLL_HEIGHT = ((Element) (e)).height;
    }

    private static final String menus[] = {
        "pendahuluan.txt", "index_quran", "bantuan.txt", "tentang.txt", "exit"
    };

}
